#include "Main.h"

#include "SDL/SystemSDL_1_2.h"
#include "Point.h"
#include "Color.h"
#include "Rect.h"

#include <cstdio>
#include <cstdlib>
#include <ctime>

const int MAX_OBJECTS = 20;

CMain::CMain( void )
{
    //ctor
}

CMain::~CMain( void )
{
    //dtor
}

int CMain::Run( void )
{
    int beginX = 640 / 2;
    int beginY = 480 / 2;
    static int endX = 0;
    static int endY = 480;

    if( endY > 0 )
        endY--;

    CSystemRenderer::DrawLine( CPoint( beginX, beginY ), CPoint( endX, endY ),
                               CColor( 255, 0, 0, 0 ) );

    return 0;
}

int main( int argc, char* arv[] )
{
    return CSystem::Run( g_Engine );
}
